新增/修改配置

请求地址

/v2/webservice/table/set-periodically-cleanup-table

请求方法

Post

请求参数说明

参数名称类型是否必填说明
app_idnumber是项目ID
tablesconfig数组

参数配置项说明

参数名称类型是否必填说明
zone_idnumber
table_namestring
start_time生效时间
cleanup_period清理周期,单位:秒, 最小1800秒

示例

{
    "app_id": 2,
    "tables": [
        {
            "zone_id": 134,
            "table_name": "table_list1",
            "start_time":"2022-09-20 17:05:05",
            "cleanup_period":1800
        }
    ]
}

返回参数说明

参数名称类型说明
task_idnumber任务ID
result成功生成任务标识位, 0为成功

成功返回, 生成任务

{
    "code": 0,
    "request_id": "b6047b80-370c-48f5-b42b-40565b3fb81b",
    "data": [
        {
            "app_id": 2,
            "zone_id": 134,
            "table_name": "table_list1",
            "table_type": 0,
            "task_id": 13776,
            "result": 0,
            "msg": "success"
        }
    ]
}

失败返回

{

}